<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>upy.hostHelper.Helper</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="upy-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="upy-module.html">Package&nbsp;upy</a> ::
        <a href="upy.hostHelper-module.html">Module&nbsp;hostHelper</a> ::
        Class&nbsp;Helper
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="upy.hostHelper.Helper-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class Helper</h1><p class="nomargin-top"><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper">source&nbsp;code</a></span></p>
<p>The Helper abstract Object ============================ This is the 
  main class from which all helper derived. The Helper give access to the 
  basic function need for create and edit object in the host. Most of the 
  function define at this loevel are overwrite by the class child.</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="__init__"></a><span class="summary-sig-name">__init__</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#vector_norm" class="summary-sig-name">vector_norm</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">axis</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">out</span>=<span class="summary-sig-default">None</span>)</span><br />
      Return length, i.e.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.vector_norm">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#unit_vector" class="summary-sig-name">unit_vector</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">axis</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">out</span>=<span class="summary-sig-default">None</span>)</span><br />
      Return ndarray normalized by length, i.e.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.unit_vector">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="norm"></a><span class="summary-sig-name">norm</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">a</span>,
        <span class="summary-sig-arg">b</span>,
        <span class="summary-sig-arg">c</span>)</span><br />
      result = math.sqrt( a*a + b*b + c*c) a,b,c being double</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.norm">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="normalize"></a><span class="summary-sig-name">normalize</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">A</span>)</span><br />
      Normalize the Vector A</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.normalize">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="measure_distance"></a><span class="summary-sig-name">measure_distance</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">c0</span>,
        <span class="summary-sig-arg">c1</span>,
        <span class="summary-sig-arg">vec</span>=<span class="summary-sig-default">False</span>)</span><br />
      measure distance between 2 point specify by x,y,z c0,c1 should be 
      Numeric.array</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.measure_distance">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#rotation_matrix" class="summary-sig-name">rotation_matrix</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">angle</span>,
        <span class="summary-sig-arg">direction</span>,
        <span class="summary-sig-arg">point</span>=<span class="summary-sig-default">None</span>)</span><br />
      Return matrix to rotate about axis defined by point and direction.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.rotation_matrix">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="rotate_about_axis"></a><span class="summary-sig-name">rotate_about_axis</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">B</span>,
        <span class="summary-sig-arg">theta</span>,
        <span class="summary-sig-arg">axis</span>=<span class="summary-sig-default">2</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.rotate_about_axis">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#randpoint_onsphere" class="summary-sig-name">randpoint_onsphere</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">radius</span>,
        <span class="summary-sig-arg">biased</span>=<span class="summary-sig-default">None</span>)</span><br />
      Generate a random point on the outside of a sphere.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.randpoint_onsphere">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#angle_between_vectors" class="summary-sig-name">angle_between_vectors</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">v0</span>,
        <span class="summary-sig-arg">v1</span>,
        <span class="summary-sig-arg">directed</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">axis</span>=<span class="summary-sig-default">0</span>)</span><br />
      Return angle between vectors.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.angle_between_vectors">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="rotatePoint"></a><span class="summary-sig-name">rotatePoint</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">pt</span>,
        <span class="summary-sig-arg">m</span>,
        <span class="summary-sig-arg">ax</span>)</span><br />
      rotate the point pt [x,y,z] around axe ax[0],ax[1],ax[2] by ax[3] 
      radians, and translate by m [x,y,z].</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.rotatePoint">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">4x4array</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#eulerToMatrix" class="summary-sig-name">eulerToMatrix</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">euler</span>)</span><br />
      code from 
      'http://www.euclideanspace.com/maths/geometry/rotations/conversions/'.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.eulerToMatrix">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">array</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#ApplyMatrix" class="summary-sig-name">ApplyMatrix</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">coords</span>,
        <span class="summary-sig-arg">mat</span>)</span><br />
      Apply the 4x4 transformation matrix to the given list of 3d points</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.ApplyMatrix">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">list of array</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#Decompose4x4" class="summary-sig-name">Decompose4x4</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">matrix</span>)</span><br />
      Takes a matrix in shape (16,) in OpenGL form (sequential values go 
      down columns) and decomposes it into its rotation (shape (16,)), 
      translation (shape (3,)), and scale (shape (3,))</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.Decompose4x4">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">tupple</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#getTubeProperties" class="summary-sig-name">getTubeProperties</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">coord1</span>,
        <span class="summary-sig-arg">coord2</span>)</span><br />
      From two point return the length, and the orientation from one to 
      another</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getTubeProperties">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getTubePropertiesMatrix"></a><span class="summary-sig-name">getTubePropertiesMatrix</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">coord1</span>,
        <span class="summary-sig-arg">coord2</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getTubePropertiesMatrix">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">list/array</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#getCenter" class="summary-sig-name">getCenter</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">coords</span>)</span><br />
      Get the center from a 3d array of coordinate x,y,z.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getCenter">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="update"></a><span class="summary-sig-name">update</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Update the host viewport, ui or gl draw This function can't be call 
      in a thread.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.update">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="fit_view3D"></a><span class="summary-sig-name">fit_view3D</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Function that should recenter the viewport to the object in the scene</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.fit_view3D">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">string</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#checkName" class="summary-sig-name">checkName</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>)</span><br />
      Check the name of the molecule/filename to avoid invalid caracter for
      the host.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.checkName">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">hostObject</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#getObject" class="summary-sig-name">getObject</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>)</span><br />
      retrieve an object from his name.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getObject">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">string</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#getObjectName" class="summary-sig-name">getObjectName</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">o</span>)</span><br />
      Return the name of an host object</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getObjectName">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">scene</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#getCurrentScene" class="summary-sig-name">getCurrentScene</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Return the current/active working document or scene</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getCurrentScene">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">liste</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#getCurrentSelection" class="summary-sig-name">getCurrentSelection</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Return the current/active selected object in the document or scene</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getCurrentSelection">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">list</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#getPosUntilRoot" class="summary-sig-name">getPosUntilRoot</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">object</span>)</span><br />
      Go through the hierarchy of the object until reaching the top level, 
      increment the position to get the transformation due to parents.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getPosUntilRoot">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#addObjectToScene" class="summary-sig-name">addObjectToScene</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">doc</span>,
        <span class="summary-sig-arg">object</span>,
        <span class="summary-sig-arg">parent</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">centerRoot</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">rePos</span>=<span class="summary-sig-default">None</span>)</span><br />
      Insert/add an object to the current document under the specified 
      parent, and at the specified location</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.addObjectToScene">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#AddObject" class="summary-sig-name">AddObject</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">object</span>,
        <span class="summary-sig-arg">parent</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">centerRoot</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">rePos</span>=<span class="summary-sig-default">None</span>)</span><br />
      Insert/add an object to the current document under the specified 
      parent, and at the specified location.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.AddObject">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#ObjectsSelection" class="summary-sig-name">ObjectsSelection</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">listeObjects</span>,
        <span class="summary-sig-arg">typeSel</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">new</code><code class="variable-quote">'</code></span>)</span><br />
      Modify the current object selection.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.ObjectsSelection">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#JoinsObjects" class="summary-sig-name">JoinsObjects</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">listeObjects</span>)</span><br />
      Merge the given liste of object in one unique geometry.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.JoinsObjects">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#addCameraToScene" class="summary-sig-name">addCameraToScene</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">Type</span>,
        <span class="summary-sig-arg">focal</span>,
        <span class="summary-sig-arg">center</span>,
        <span class="summary-sig-arg">scene</span>)</span><br />
      Add a camera object to the scene</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.addCameraToScene">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#addLampToScene" class="summary-sig-name">addLampToScene</a>(<span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">Type</span>,
        <span class="summary-sig-arg">rgb</span>,
        <span class="summary-sig-arg">dist</span>,
        <span class="summary-sig-arg">energy</span>,
        <span class="summary-sig-arg">soft</span>,
        <span class="summary-sig-arg">shadow</span>,
        <span class="summary-sig-arg">center</span>,
        <span class="summary-sig-arg">scene</span>)</span><br />
      Add a light to the scene</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.addLampToScene">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">hostObject</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#newEmpty" class="summary-sig-name">newEmpty</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">location</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">parentCenter</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">**kw</span>)</span><br />
      Create a new Null Object</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.newEmpty">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">hostObject</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#newInstance" class="summary-sig-name">newInstance</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">object</span>,
        <span class="summary-sig-arg">location</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">hostmatrice</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">matrice</span>=<span class="summary-sig-default">None</span>)</span><br />
      Create a new Instance from another Object</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.newInstance">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#translateObj" class="summary-sig-name">translateObj</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">object</span>,
        <span class="summary-sig-arg">position</span>,
        <span class="summary-sig-arg">use_parent</span>=<span class="summary-sig-default">True</span>)</span><br />
      Translation : Move the object to the vector position</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.translateObj">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#scaleObj" class="summary-sig-name">scaleObj</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">object</span>,
        <span class="summary-sig-arg">sc</span>)</span><br />
      Scale : scale the object by the vector scale</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.scaleObj">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#rotateObj" class="summary-sig-name">rotateObj</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">object</span>,
        <span class="summary-sig-arg">rotation</span>)</span><br />
      Translation : Move the object to the vector position This method 
      could take either, a matrice, a euler array, a quaternion...</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.rotateObj">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">3d vector/list</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#getTranslation" class="summary-sig-name">getTranslation</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">absolue</span>=<span class="summary-sig-default">True</span>)</span><br />
      Return the current position (translation)  of the  given object in 
      absolute or local world</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getTranslation">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#toggleDisplay" class="summary-sig-name">toggleDisplay</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">object</span>,
        <span class="summary-sig-arg">display</span>)</span><br />
      Toggle on/off the display/visibility/rendermode of an hostObject in 
      the host viewport</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.toggleDisplay">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">bool/array of bool</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#getVisibility" class="summary-sig-name">getVisibility</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">obj</span>,
        <span class="summary-sig-arg">editor</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">render</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">active</span>=<span class="summary-sig-default">False</span>)</span><br />
      return the editor/renedring/active visibility state of the given 
      object</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getVisibility">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="toggleEditMode"></a><span class="summary-sig-name">toggleEditMode</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Turn off edit mode (if any)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.toggleEditMode">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="restoreEditMode"></a><span class="summary-sig-name">restoreEditMode</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">editmode</span>=<span class="summary-sig-default">1</span>)</span><br />
      Restor any edit mode</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.restoreEditMode">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#setObjectMatrix" class="summary-sig-name">setObjectMatrix</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">object</span>,
        <span class="summary-sig-arg">matrice</span>,
        <span class="summary-sig-arg">hostmatrice</span>=<span class="summary-sig-default">None</span>)</span><br />
      set a matrix to an hostObject</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.setObjectMatrix">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#concatObjectMatrix" class="summary-sig-name">concatObjectMatrix</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">object</span>,
        <span class="summary-sig-arg">matrice</span>,
        <span class="summary-sig-arg">hostmatrice</span>=<span class="summary-sig-default">None</span>)</span><br />
      apply a matrix to an hostObject</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.concatObjectMatrix">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="updateTubeObjs"></a><span class="summary-sig-name">updateTubeObjs</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">listeObj</span>,
        <span class="summary-sig-arg">listePts</span>,
        <span class="summary-sig-arg">listeInd</span>=<span class="summary-sig-default">None</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.updateTubeObjs">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">array</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#convertColor" class="summary-sig-name">convertColor</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">col</span>,
        <span class="summary-sig-arg">toint</span>=<span class="summary-sig-default">True</span>)</span><br />
      This function will convert a color array [r,g,b] from range 1-255 to 
      range 0.-1 (vice/versa)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.convertColor">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="addMaterialFromDic"></a><span class="summary-sig-name">addMaterialFromDic</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">dic</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.addMaterialFromDic">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">list</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#createColorsMat" class="summary-sig-name">createColorsMat</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Create a Material for all defined colors</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.createColorsMat">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">hostMaterial</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#retrieveColorMat" class="summary-sig-name">retrieveColorMat</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">color</span>)</span><br />
      Retrieve a material in the current document from his color (r,g,b), 
      if his color correpond to a DejaVu color</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.retrieveColorMat">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">hostMaterial</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#addMaterial" class="summary-sig-name">addMaterial</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">color</span>)</span><br />
      Add a material in the current document</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.addMaterial">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#assignMaterial" class="summary-sig-name">assignMaterial</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">mat</span>,
        <span class="summary-sig-arg">object</span>)</span><br />
      Assign the provided material to the object</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.assignMaterial">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#colorMaterial" class="summary-sig-name">colorMaterial</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">mat</span>,
        <span class="summary-sig-arg">col</span>)</span><br />
      Color a given material using the given color (r,g,b).</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.colorMaterial">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getMaterial"></a><span class="summary-sig-name">getMaterial</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getMaterial">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getAllMaterials"></a><span class="summary-sig-name">getAllMaterials</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getAllMaterials">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="colorObject"></a><span class="summary-sig-name">colorObject</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">obj</span>,
        <span class="summary-sig-arg">color</span>,
        <span class="summary-sig-arg">**options</span>)</span><br />
      Apply the given color to the given object,</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.colorObject">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="changeColor"></a><span class="summary-sig-name">changeColor</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">obj</span>,
        <span class="summary-sig-arg">colors</span>,
        <span class="summary-sig-arg">perVertex</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">proxyObject</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">doc</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">pb</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">facesSelection</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">faceMaterial</span>=<span class="summary-sig-default">False</span>)</span><br />
      Apply the given set of color to the given object, if the object is a 
      mesh this functino handle the color per vertex</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.changeColor">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="changeObjColorMat"></a><span class="summary-sig-name">changeObjColorMat</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">obj</span>,
        <span class="summary-sig-arg">color</span>)</span><br />
      change the diffuse color of the object material</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.changeObjColorMat">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getMesh"></a><span class="summary-sig-name">getMesh</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getMesh">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getName"></a><span class="summary-sig-name">getName</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">object</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getName">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#reParent" class="summary-sig-name">reParent</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">objs</span>,
        <span class="summary-sig-arg">parent</span>)</span><br />
      Change the object parent using the specified parent objects</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.reParent">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="deleteChildrens"></a><span class="summary-sig-name">deleteChildrens</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">obj</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.deleteChildrens">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#constraintLookAt" class="summary-sig-name">constraintLookAt</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">object</span>)</span><br />
      Cosntraint an hostobject to llok at the camera</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.constraintLookAt">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">hostObject</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#Text" class="summary-sig-name">Text</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">string</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">parent</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">size</span>=<span class="summary-sig-default">5.0</span>,
        <span class="summary-sig-arg">pos</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">font</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">lookAt</span>=<span class="summary-sig-default">False</span>)</span><br />
      Create a hostobject of type Text.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.Text">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">hostObject</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#Circle" class="summary-sig-name">Circle</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">rad</span>=<span class="summary-sig-default">1.0</span>)</span><br />
      Create a hostobject of type 2d circle.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.Circle">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">hostObject</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#Cylinder" class="summary-sig-name">Cylinder</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">radius</span>=<span class="summary-sig-default">1.0</span>,
        <span class="summary-sig-arg">length</span>=<span class="summary-sig-default">1.0</span>,
        <span class="summary-sig-arg">res</span>=<span class="summary-sig-default">16</span>,
        <span class="summary-sig-arg">pos</span>=<span class="summary-sig-default"><code class="variable-group">[</code>0.0<code class="variable-op">, </code>0.0<code class="variable-op">, </code>0.0<code class="variable-group">]</code></span>)</span><br />
      Create a hostobject of type cylinder.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.Cylinder">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">hostObject</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#Sphere" class="summary-sig-name">Sphere</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">radius</span>=<span class="summary-sig-default">1.0</span>,
        <span class="summary-sig-arg">res</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">pos</span>=<span class="summary-sig-default"><code class="variable-group">[</code>0.0<code class="variable-op">, </code>0.0<code class="variable-op">, </code>0.0<code class="variable-group">]</code></span>)</span><br />
      Create a hostobject of type sphere.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.Sphere">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">hostObject</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#box" class="summary-sig-name">box</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">center</span>=<span class="summary-sig-default"><code class="variable-group">[</code>0.0<code class="variable-op">, </code>0.0<code class="variable-op">, </code>0.0<code class="variable-group">]</code></span>,
        <span class="summary-sig-arg">size</span>=<span class="summary-sig-default"><code class="variable-group">[</code>1.0<code class="variable-op">, </code>1.0<code class="variable-op">, </code>1.0<code class="variable-group">]</code></span>,
        <span class="summary-sig-arg">cornerPoints</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">visible</span>=<span class="summary-sig-default">1</span>)</span><br />
      Create a hostobject of type cube.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.box">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#updateBox" class="summary-sig-name">updateBox</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">box</span>,
        <span class="summary-sig-arg">center</span>=<span class="summary-sig-default"><code class="variable-group">[</code>0.0<code class="variable-op">, </code>0.0<code class="variable-op">, </code>0.0<code class="variable-group">]</code></span>,
        <span class="summary-sig-arg">size</span>=<span class="summary-sig-default"><code class="variable-group">[</code>1.0<code class="variable-op">, </code>1.0<code class="variable-op">, </code>1.0<code class="variable-group">]</code></span>,
        <span class="summary-sig-arg">cornerPoints</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">visible</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">mat</span>=<span class="summary-sig-default">None</span>)</span><br />
      Update the given box.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.updateBox">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">array 2x3</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#getCornerPointCube" class="summary-sig-name">getCornerPointCube</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">obj</span>)</span><br />
      Return the corner Point of the Given Cube/Box</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getCornerPointCube">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">hostObject</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#spline" class="summary-sig-name">spline</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">points</span>,
        <span class="summary-sig-arg">close</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">type</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">scene</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">parent</span>=<span class="summary-sig-default">None</span>)</span><br />
      This will return a hostApp spline/curve object according the given 
      list of point.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.spline">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">hostObject</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#plane" class="summary-sig-name">plane</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">center</span>=<span class="summary-sig-default"><code class="variable-group">[</code>0.0<code class="variable-op">, </code>0.0<code class="variable-op">, </code>0.0<code class="variable-group">]</code></span>,
        <span class="summary-sig-arg">size</span>=<span class="summary-sig-default"><code class="variable-group">[</code>1.0<code class="variable-op">, </code>1.0<code class="variable-group">]</code></span>,
        <span class="summary-sig-arg">cornerPoints</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">visible</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">**kw</span>)</span><br />
      Create a hostobject of type cube.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.plane">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#update_spline" class="summary-sig-name">update_spline</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">coords</span>)</span><br />
      This will update the spline point coordinate</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.update_spline">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">hostObject</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#Platonic" class="summary-sig-name">Platonic</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">Type</span>,
        <span class="summary-sig-arg">radius</span>,
        <span class="summary-sig-arg">**kw</span>)</span><br />
      Generate one of the 5 platonic solid.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.Platonic">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#tetrahedron" class="summary-sig-name">tetrahedron</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">radius</span>)</span><br />
      This will update the spline point coordinate</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.tetrahedron">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="Tetrahedron"></a><span class="summary-sig-name">Tetrahedron</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">radius</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.Tetrahedron">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="hexahedron"></a><span class="summary-sig-name">hexahedron</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">radius</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.hexahedron">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="Hexahedron"></a><span class="summary-sig-name">Hexahedron</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">radius</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.Hexahedron">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#octahedron" class="summary-sig-name">octahedron</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">radius</span>)</span><br />
      This will update the spline point coordinate</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.octahedron">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="Octahedron"></a><span class="summary-sig-name">Octahedron</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">radius</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.Octahedron">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#dodecahedron" class="summary-sig-name">dodecahedron</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">radius</span>)</span><br />
      This will update the spline point coordinate</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.dodecahedron">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="Dodecahedron"></a><span class="summary-sig-name">Dodecahedron</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">radius</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.Dodecahedron">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#icosahedron" class="summary-sig-name">icosahedron</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">radius</span>)</span><br />
      This will update the spline point coordinate</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.icosahedron">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="Icosahedron"></a><span class="summary-sig-name">Icosahedron</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">radius</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.Icosahedron">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#progressBar" class="summary-sig-name">progressBar</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">progress</span>,
        <span class="summary-sig-arg">label</span>)</span><br />
      update the progress bar status by progress value and label string</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.progressBar">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="resetProgressBar"></a><span class="summary-sig-name">resetProgressBar</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">value</span>)</span><br />
      reset the Progress Bar, using value</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.resetProgressBar">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getUVs"></a><span class="summary-sig-name">getUVs</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getUVs">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="setUVs"></a><span class="summary-sig-name">setUVs</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.setUVs">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getUV"></a><span class="summary-sig-name">getUV</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">object</span>,
        <span class="summary-sig-arg">faceIndex</span>,
        <span class="summary-sig-arg">vertexIndex</span>,
        <span class="summary-sig-arg">perVertice</span>=<span class="summary-sig-default">True</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getUV">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="setUV"></a><span class="summary-sig-name">setUV</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">object</span>,
        <span class="summary-sig-arg">faceIndex</span>,
        <span class="summary-sig-arg">vertexIndex</span>,
        <span class="summary-sig-arg">uv</span>,
        <span class="summary-sig-arg">perVertice</span>=<span class="summary-sig-default">True</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.setUV">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="makeTexture"></a><span class="summary-sig-name">makeTexture</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">object</span>,
        <span class="summary-sig-arg">filename</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">img</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">colors</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">sizex</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">sizey</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">s</span>=<span class="summary-sig-default">20</span>,
        <span class="summary-sig-arg">draw</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">faces</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">invert</span>=<span class="summary-sig-default">False</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.makeTexture">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="makeTextureM"></a><span class="summary-sig-name">makeTextureM</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">object</span>,
        <span class="summary-sig-arg">filename</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">img</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">colors</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">sizex</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">sizey</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">s</span>=<span class="summary-sig-default">20</span>,
        <span class="summary-sig-arg">draw</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">faces</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">invert</span>=<span class="summary-sig-default">False</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.makeTextureM">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="makeTextureFromUVs"></a><span class="summary-sig-name">makeTextureFromUVs</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">object</span>,
        <span class="summary-sig-arg">filename</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">img</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">colors</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">sizex</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">sizey</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">s</span>=<span class="summary-sig-default">20</span>,
        <span class="summary-sig-arg">draw</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">invert</span>=<span class="summary-sig-default">False</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.makeTextureFromUVs">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="fillTriangleColor"></a><span class="summary-sig-name">fillTriangleColor</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">array</span>,
        <span class="summary-sig-arg">col1</span>,
        <span class="summary-sig-arg">col2</span>,
        <span class="summary-sig-arg">col3</span>,
        <span class="summary-sig-arg">xys</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.fillTriangleColor">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="drawGradientLine"></a><span class="summary-sig-name">drawGradientLine</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">imdraw</span>,
        <span class="summary-sig-arg">col1</span>,
        <span class="summary-sig-arg">col2</span>,
        <span class="summary-sig-arg">col3</span>,
        <span class="summary-sig-arg">xys</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.drawGradientLine">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="drawPtCol"></a><span class="summary-sig-name">drawPtCol</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">imdraw</span>,
        <span class="summary-sig-arg">color</span>,
        <span class="summary-sig-arg">uv</span>,
        <span class="summary-sig-arg">debug</span>=<span class="summary-sig-default">0</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.drawPtCol">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getOrder"></a><span class="summary-sig-name">getOrder</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">distu</span>,
        <span class="summary-sig-arg">uv</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getOrder">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getA"></a><span class="summary-sig-name">getA</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">pt1</span>,
        <span class="summary-sig-arg">pt2</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getA">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="writeMeshToFile"></a><span class="summary-sig-name">writeMeshToFile</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">filename</span>,
        <span class="summary-sig-arg">verts</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">faces</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">vnorms</span>=<span class="summary-sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>,
        <span class="summary-sig-arg">fnorms</span>=<span class="summary-sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.writeMeshToFile">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="readMeshFromFile"></a><span class="summary-sig-name">readMeshFromFile</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">filename</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.readMeshFromFile">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#writeToFile" class="summary-sig-name">writeToFile</a>(<span class="summary-sig-arg">filename</span>)</span><br />
      Creates a .vert and a face file describing this indexed polygons 
      geoemtry.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.writeToFile">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="findClosestPoint"></a><span class="summary-sig-name">findClosestPoint</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">point</span>,
        <span class="summary-sig-arg">object</span>,
        <span class="summary-sig-arg">transform</span>=<span class="summary-sig-default">True</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.findClosestPoint">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">matrice</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#ToMat" class="summary-sig-name">ToMat</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">mat</span>)</span><br />
      Return a python (4,4) matrice array from a host matrice</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.ToMat">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">array</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#ToVec" class="summary-sig-name">ToVec</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">v</span>)</span><br />
      Return a python xyz array from a host xyz array/vector</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.ToVec">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#createsNmesh" class="summary-sig-name">createsNmesh</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">vertices</span>,
        <span class="summary-sig-arg">vnormals</span>,
        <span class="summary-sig-arg">faces</span>,
        <span class="summary-sig-arg">smooth</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">material</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">proxyCol</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default"><code class="variable-group">[</code><code class="variable-group">[</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">]</code><code class="variable-group">]</code></span>)</span><br />
      function that generate a Polygon object from the given vertices, face
      and normal.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.createsNmesh">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">hostApp obj</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#PointCloudObject" class="summary-sig-name">PointCloudObject</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">**kw</span>)</span><br />
      This function create a special polygon which have only point.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.PointCloudObject">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">bone</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#addBone" class="summary-sig-name">addBone</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">i</span>,
        <span class="summary-sig-arg">armData</span>,
        <span class="summary-sig-arg">headCoord</span>,
        <span class="summary-sig-arg">tailCoord</span>,
        <span class="summary-sig-arg">roll</span>=<span class="summary-sig-default">10</span>,
        <span class="summary-sig-arg">hR</span>=<span class="summary-sig-default">0.5</span>,
        <span class="summary-sig-arg">tR</span>=<span class="summary-sig-default">0.5</span>,
        <span class="summary-sig-arg">dDist</span>=<span class="summary-sig-default">0.4</span>,
        <span class="summary-sig-arg">boneParent</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">editMode</span>=<span class="summary-sig-default">True</span>)</span><br />
      Add one bone to an armature.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.addBone">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">host Object</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#armature" class="summary-sig-name">armature</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">coords</span>,
        <span class="summary-sig-arg">**kw</span>)</span><br />
      Create an armature along the given coordinates</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.armature">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">ball/None</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#oneMetaBall" class="summary-sig-name">oneMetaBall</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">metab</span>,
        <span class="summary-sig-arg">rad</span>,
        <span class="summary-sig-arg">coord</span>)</span><br />
      Add one ball to a metaball object.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.oneMetaBall">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">host Object</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#metaballs" class="summary-sig-name">metaballs</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">listePt</span>,
        <span class="summary-sig-arg">listeR</span>,
        <span class="summary-sig-arg">**kw</span>)</span><br />
      Create a metaballs along the given coordinates</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.metaballs">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getMeshVertices"></a><span class="summary-sig-name">getMeshVertices</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">poly</span>,
        <span class="summary-sig-arg">selected</span>=<span class="summary-sig-default">False</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getMeshVertices">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getMeshNormales"></a><span class="summary-sig-name">getMeshNormales</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">poly</span>,
        <span class="summary-sig-arg">selected</span>=<span class="summary-sig-default">False</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getMeshNormales">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getMeshEdge"></a><span class="summary-sig-name">getMeshEdge</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">hostedge</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getMeshEdge">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getMeshEdges"></a><span class="summary-sig-name">getMeshEdges</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">poly</span>,
        <span class="summary-sig-arg">selected</span>=<span class="summary-sig-default">False</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getMeshEdges">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getFace"></a><span class="summary-sig-name">getFace</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">hostface</span>,
        <span class="summary-sig-arg">r</span>=<span class="summary-sig-default">True</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getFace">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getFaces"></a><span class="summary-sig-name">getFaces</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">object</span>,
        <span class="summary-sig-arg">selected</span>=<span class="summary-sig-default">False</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getFaces">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getMeshFaces"></a><span class="summary-sig-name">getMeshFaces</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">poly</span>,
        <span class="summary-sig-arg">selected</span>=<span class="summary-sig-default">False</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getMeshFaces">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="upy.hostHelper.Helper-class.html#triangulate" class="summary-sig-name">triangulate</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">poly</span>)</span><br />
      Convert quad to triangle the selected face of the given polygon 
      object</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.triangulate">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="setRigidBody"></a><span class="summary-sig-name">setRigidBody</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">*args</span>,
        <span class="summary-sig-arg">**kw</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.setRigidBody">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="pathDeform"></a><span class="summary-sig-name">pathDeform</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">*args</span>,
        <span class="summary-sig-arg">**kw</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.pathDeform">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="updatePathDeform"></a><span class="summary-sig-name">updatePathDeform</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">*args</span>,
        <span class="summary-sig-arg">**kw</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.updatePathDeform">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_usenumpy"></a><span class="summary-name">_usenumpy</span> = <code title="True">True</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_MGLTools"></a><span class="summary-name">_MGLTools</span> = <code title="False">False</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="BONES"></a><span class="summary-name">BONES</span> = <code title="None">None</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="IK"></a><span class="summary-name">IK</span> = <code title="None">None</code>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="vector_norm"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vector_norm</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">data</span>,
        <span class="sig-arg">axis</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">out</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.vector_norm">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Return length, i.e. eucledian norm, of ndarray along axis.</p>
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>v = numpy.random.random(3)
<span class="py-prompt">&gt;&gt;&gt; </span>n = vector_norm(v)
<span class="py-prompt">&gt;&gt;&gt; </span>numpy.allclose(n, numpy.linalg.norm(v))
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>v = numpy.random.rand(6, 5, 3)
<span class="py-prompt">&gt;&gt;&gt; </span>n = vector_norm(v, axis=-1)
<span class="py-prompt">&gt;&gt;&gt; </span>numpy.allclose(n, numpy.sqrt(numpy.sum(v*v, axis=2)))
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>n = vector_norm(v, axis=1)
<span class="py-prompt">&gt;&gt;&gt; </span>numpy.allclose(n, numpy.sqrt(numpy.sum(v*v, axis=1)))
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>v = numpy.random.rand(5, 4, 3)
<span class="py-prompt">&gt;&gt;&gt; </span>n = numpy.empty((5, 3), dtype=numpy.float64)
<span class="py-prompt">&gt;&gt;&gt; </span>vector_norm(v, axis=1, out=n)
<span class="py-prompt">&gt;&gt;&gt; </span>numpy.allclose(n, numpy.sqrt(numpy.sum(v*v, axis=1)))
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>vector_norm([])
<span class="py-output">0.0</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>vector_norm([1.0])
<span class="py-output">1.0</span></pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="unit_vector"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">unit_vector</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">data</span>,
        <span class="sig-arg">axis</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">out</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.unit_vector">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Return ndarray normalized by length, i.e. eucledian norm, along 
  axis.</p>
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>v0 = numpy.random.random(3)
<span class="py-prompt">&gt;&gt;&gt; </span>v1 = unit_vector(v0)
<span class="py-prompt">&gt;&gt;&gt; </span>numpy.allclose(v1, v0 / numpy.linalg.norm(v0))
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>v0 = numpy.random.rand(5, 4, 3)
<span class="py-prompt">&gt;&gt;&gt; </span>v1 = unit_vector(v0, axis=-1)
<span class="py-prompt">&gt;&gt;&gt; </span>v2 = v0 / numpy.expand_dims(numpy.sqrt(numpy.sum(v0*v0, axis=2)), 2)
<span class="py-prompt">&gt;&gt;&gt; </span>numpy.allclose(v1, v2)
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>v1 = unit_vector(v0, axis=1)
<span class="py-prompt">&gt;&gt;&gt; </span>v2 = v0 / numpy.expand_dims(numpy.sqrt(numpy.sum(v0*v0, axis=1)), 1)
<span class="py-prompt">&gt;&gt;&gt; </span>numpy.allclose(v1, v2)
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>v1 = numpy.empty((5, 4, 3), dtype=numpy.float64)
<span class="py-prompt">&gt;&gt;&gt; </span>unit_vector(v0, axis=1, out=v1)
<span class="py-prompt">&gt;&gt;&gt; </span>numpy.allclose(v1, v2)
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>list(unit_vector([]))
<span class="py-output">[]</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>list(unit_vector([1.0]))
<span class="py-output">[1.0]</span></pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="rotation_matrix"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">rotation_matrix</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">angle</span>,
        <span class="sig-arg">direction</span>,
        <span class="sig-arg">point</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.rotation_matrix">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Return matrix to rotate about axis defined by point and direction.</p>
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>R = rotation_matrix(math.pi/2.0, [0, 0, 1], [1, 0, 0])
<span class="py-prompt">&gt;&gt;&gt; </span>numpy.allclose(numpy.dot(R, [0, 0, 0, 1]), [ 1., -1.,  0.,  1.])
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>angle = (random.random() - 0.5) * (2*math.pi)
<span class="py-prompt">&gt;&gt;&gt; </span>direc = numpy.random.random(3) - 0.5
<span class="py-prompt">&gt;&gt;&gt; </span>point = numpy.random.random(3) - 0.5
<span class="py-prompt">&gt;&gt;&gt; </span>R0 = rotation_matrix(angle, direc, point)
<span class="py-prompt">&gt;&gt;&gt; </span>R1 = rotation_matrix(angle-2*math.pi, direc, point)
<span class="py-prompt">&gt;&gt;&gt; </span>is_same_transform(R0, R1)
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>R0 = rotation_matrix(angle, direc, point)
<span class="py-prompt">&gt;&gt;&gt; </span>R1 = rotation_matrix(-angle, -direc, point)
<span class="py-prompt">&gt;&gt;&gt; </span>is_same_transform(R0, R1)
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>I = numpy.identity(4, numpy.float64)
<span class="py-prompt">&gt;&gt;&gt; </span>numpy.allclose(I, rotation_matrix(math.pi*2, direc))
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>numpy.allclose(2., numpy.trace(rotation_matrix(math.pi/2,
<span class="py-more">... </span>                                               direc, point)))
<span class="py-output">True</span></pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="randpoint_onsphere"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">randpoint_onsphere</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">radius</span>,
        <span class="sig-arg">biased</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.randpoint_onsphere">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Generate a random point on the outside of a sphere.
-points (x,y,z) so that (x-a)^2 +(y-b)^2 + (z-c)^2 = R^2
-To generate a random point on the sphere, it is necessary only 
to generate two random numbers, z between -R and R, phi between 
0 and 2 pi, each with a uniform distribution
To find the latitude (theta) of this point, note that z=R*sin(theta), 
so theta=sin-1(z/R); its longitude is (surprise!) phi.
In rectilinear coordinates, 
tetha = asin-1(z/R)
x=R*cos(theta)*cos(phi), 
y=R*cos(theta)*sin(phi), 
z=R*sin(theta)= (surprise!) z.
-hemispher
theta (0 &lt;= theta &lt; 360) and phi (0 &lt;= phi &lt;= pi/2)
x = cos(sqrt(phi)) cos(theta)
y = cos(sqrt(phi)) sin(theta)
z = sin(sqrt(phi)) 
A whole sphere is obtained by simply randomising the sign of z. 
-Azimuth axis is X axis. The elevation angle is measured as the angle 
between the Z-axis pointing upwards and the radius vector. 
From elementary spherical geometry:
    X coordinate=r*cos(pi/2-el)*cos(az)
    Y coordinate=r*cos(pi/2-el)*sin(az)
    Z Coordinate=r*sin(pi/2-el)

    r=1.1;
    az=pi/4;
    el=pi/4;
    plot3(r*sin(az)*cos(el), r*sin(az)*sin(el), r*cos(az), 'k*', 'MarkerSize',10

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="angle_between_vectors"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">angle_between_vectors</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">v0</span>,
        <span class="sig-arg">v1</span>,
        <span class="sig-arg">directed</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">axis</span>=<span class="sig-default">0</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.angle_between_vectors">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Return angle between vectors.</p>
  <p>If directed is False, the input vectors are interpreted as undirected 
  axes, i.e. the maximum angle is pi/2.</p>
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>a = angle_between_vectors([1, -2, 3], [-1, 2, -3])
<span class="py-prompt">&gt;&gt;&gt; </span>numpy.allclose(a, math.pi)
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>a = angle_between_vectors([1, -2, 3], [-1, 2, -3], directed=False)
<span class="py-prompt">&gt;&gt;&gt; </span>numpy.allclose(a, 0)
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>v0 = [[2, 0, 0, 2], [0, 2, 0, 2], [0, 0, 2, 2]]
<span class="py-prompt">&gt;&gt;&gt; </span>v1 = [[3], [0], [0]]
<span class="py-prompt">&gt;&gt;&gt; </span>a = angle_between_vectors(v0, v1)
<span class="py-prompt">&gt;&gt;&gt; </span>numpy.allclose(a, [0., 1.5708, 1.5708, 0.95532])
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>v0 = [[2, 0, 0], [2, 0, 0], [0, 2, 0], [2, 0, 0]]
<span class="py-prompt">&gt;&gt;&gt; </span>v1 = [[0, 3, 0], [0, 0, 3], [0, 0, 3], [3, 3, 3]]
<span class="py-prompt">&gt;&gt;&gt; </span>a = angle_between_vectors(v0, v1, axis=1)
<span class="py-prompt">&gt;&gt;&gt; </span>numpy.allclose(a, [1.5708, 1.5708, 1.5708, 0.95532])
<span class="py-output">True</span></pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="eulerToMatrix"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">eulerToMatrix</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">euler</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.eulerToMatrix">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>code from 
  'http://www.euclideanspace.com/maths/geometry/rotations/conversions/'. 
  this conversion uses NASA standard aeroplane conventions as described on 
  page: 
  'http://www.euclideanspace.com/maths/geometry/rotations/euler/index.htm'</p>
  <p>Coordinate System: right hand</p>
  <p>Positive angle: right hand</p>
  <p>Order of euler angles: heading first, then attitude, then bank</p>
  <p>matrix row column ordering:</p>
  <p>[m00 m01 m02]</p>
  <p>[m10 m11 m12]</p>
  <p>[m20 m21 m22]</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>euler</code></strong> (3d array) - the euler angle to convert in matrice</li>
    </ul></dd>
    <dt>Returns: 4x4array</dt>
        <dd>the matrix computed from the euler angle</dd>
  </dl>
</td></tr></table>
</div>
<a name="ApplyMatrix"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">ApplyMatrix</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">coords</span>,
        <span class="sig-arg">mat</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.ApplyMatrix">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Apply the 4x4 transformation matrix to the given list of 3d points</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>coords</code></strong> (array) - the list of point to transform.</li>
        <li><strong class="pname"><code>mat</code></strong> (4x4array) - the matrix to apply to the 3d points</li>
    </ul></dd>
    <dt>Returns: array</dt>
        <dd>the transformed list of 3d points</dd>
  </dl>
</td></tr></table>
</div>
<a name="Decompose4x4"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">Decompose4x4</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">matrix</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.Decompose4x4">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Takes a matrix in shape (16,) in OpenGL form (sequential values go 
  down columns) and decomposes it into its rotation (shape (16,)), 
  translation (shape (3,)), and scale (shape (3,))</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>matrix</code></strong> (4x4array) - the matrix to decompose</li>
    </ul></dd>
    <dt>Returns: list of array</dt>
        <dd>the decomposition of the matrix ie : rotation,translation,scale</dd>
  </dl>
</td></tr></table>
</div>
<a name="getTubeProperties"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getTubeProperties</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">coord1</span>,
        <span class="sig-arg">coord2</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getTubeProperties">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>From two point return the length, and the orientation from one to 
  another</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>coord1</code></strong> (vector) - first point</li>
        <li><strong class="pname"><code>coord2</code></strong> (vector) - second point</li>
    </ul></dd>
    <dt>Returns: tupple</dt>
        <dd>length, orientation, and intermediate point</dd>
  </dl>
</td></tr></table>
</div>
<a name="getCenter"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getCenter</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">coords</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getCenter">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Get the center from a 3d array of coordinate x,y,z.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>coords</code></strong> (liste/array) - the coordinates</li>
    </ul></dd>
    <dt>Returns: list/array</dt>
        <dd>the center of mass of the coordinates</dd>
  </dl>
</td></tr></table>
</div>
<a name="checkName"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">checkName</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.checkName">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Check the name of the molecule/filename to avoid invalid caracter for 
  the host. ie maya didnt support object name starting with number. If a 
  invalid caracter is found, the caracter is removed.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name of the molecule.</li>
    </ul></dd>
    <dt>Returns: string</dt>
        <dd>corrected name of the molecule.</dd>
  </dl>
</td></tr></table>
</div>
<a name="getObject"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getObject</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getObject">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>retrieve an object from his name.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - request name of an host object</li>
    </ul></dd>
    <dt>Returns: hostObject</dt>
        <dd>the object with the requested name or None</dd>
  </dl>
</td></tr></table>
</div>
<a name="getObjectName"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getObjectName</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">o</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getObjectName">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Return the name of an host object</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>o</code></strong> (hostObject) - an host object</li>
    </ul></dd>
    <dt>Returns: string</dt>
        <dd>the name of the host object</dd>
  </dl>
</td></tr></table>
</div>
<a name="getCurrentScene"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getCurrentScene</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getCurrentScene">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Return the current/active working document or scene</p>
  <dl class="fields">
    <dt>Returns: scene</dt>
        <dd>the active scene</dd>
  </dl>
</td></tr></table>
</div>
<a name="getCurrentSelection"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getCurrentSelection</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getCurrentSelection">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Return the current/active selected object in the document or scene</p>
  <dl class="fields">
    <dt>Returns: liste</dt>
        <dd>the list of selected object</dd>
  </dl>
</td></tr></table>
</div>
<a name="getPosUntilRoot"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getPosUntilRoot</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">object</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getPosUntilRoot">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Go through the hierarchy of the object until reaching the top level, 
  increment the position to get the transformation due to parents.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>object</code></strong> (hostObject) - the object</li>
    </ul></dd>
    <dt>Returns: list</dt>
        <dd>the cumulative translation along the parenting hierarchy</dd>
  </dl>
</td></tr></table>
</div>
<a name="addObjectToScene"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">addObjectToScene</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">doc</span>,
        <span class="sig-arg">object</span>,
        <span class="sig-arg">parent</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">centerRoot</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">rePos</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.addObjectToScene">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Insert/add an object to the current document under the specified 
  parent, and at the specified location</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>doc</code></strong> (hostScene) - the scene where to insert the object</li>
        <li><strong class="pname"><code>object</code></strong> (hostObject) - the object to insert</li>
        <li><strong class="pname"><code>parent</code></strong> (hostObject) - the parent of the object to insert under</li>
        <li><strong class="pname"><code>centerRoot</code></strong> (boolean) - if the object have to be recentered according the top-level</li>
        <li><strong class="pname"><code>rePos</code></strong> (list) - the location of the object in the scene</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="AddObject"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">AddObject</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">object</span>,
        <span class="sig-arg">parent</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">centerRoot</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">rePos</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.AddObject">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Insert/add an object to the current document under the specified 
  parent, and at the specified location. This function is an alias for 
  addObjectToScene to permit to some script to work either in dejavu and 
  the host</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>object</code></strong> (hostObject) - the object to insert</li>
        <li><strong class="pname"><code>parent</code></strong> (hostObject) - the parent of the object to insert under</li>
        <li><strong class="pname"><code>centerRoot</code></strong> (boolean) - if the object have to be recentered according the top-level</li>
        <li><strong class="pname"><code>rePos</code></strong> (list) - the location of the object in the scene</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="ObjectsSelection"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">ObjectsSelection</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">listeObjects</span>,
        <span class="sig-arg">typeSel</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">new</code><code class="variable-quote">'</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.ObjectsSelection">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Modify the current object selection.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>listeObjects</code></strong> (list) - list of object to joins</li>
        <li><strong class="pname"><code>listeObjects</code></strong> (list) - type of modification: new,add,...</li>
        <li><strong class="pname"><code>typeSel</code></strong> (string)</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="JoinsObjects"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">JoinsObjects</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">listeObjects</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.JoinsObjects">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Merge the given liste of object in one unique geometry.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>listeObjects</code></strong> (list) - list of object to joins</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="addCameraToScene"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">addCameraToScene</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">Type</span>,
        <span class="sig-arg">focal</span>,
        <span class="sig-arg">center</span>,
        <span class="sig-arg">scene</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.addCameraToScene">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Add a camera object to the scene</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name of the camera</li>
        <li><strong class="pname"><code>Type</code></strong> (cameraType) - perspective, orthogonale etc...</li>
        <li><strong class="pname"><code>focal</code></strong> (float) - the focal of the camera</li>
        <li><strong class="pname"><code>center</code></strong> (list) - the position of the camera</li>
        <li><strong class="pname"><code>scene</code></strong> (host scene) - the scene</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="addLampToScene"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">addLampToScene</span>(<span class="sig-arg">name</span>,
        <span class="sig-arg">Type</span>,
        <span class="sig-arg">rgb</span>,
        <span class="sig-arg">dist</span>,
        <span class="sig-arg">energy</span>,
        <span class="sig-arg">soft</span>,
        <span class="sig-arg">shadow</span>,
        <span class="sig-arg">center</span>,
        <span class="sig-arg">scene</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.addLampToScene">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Add a light to the scene</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name of the instance</li>
        <li><strong class="pname"><code>Type</code></strong> (light hostType/int etc..) - the light type : spot,sun,omni,etc..</li>
        <li><strong class="pname"><code>rgb</code></strong> (list of int 0-255) - color of the light in rgb</li>
        <li><strong class="pname"><code>dist</code></strong> (float) - light distance of attenuation</li>
        <li><strong class="pname"><code>energy</code></strong> (float) - intensity of the light</li>
        <li><strong class="pname"><code>soft</code></strong> (bool) - soft light</li>
        <li><strong class="pname"><code>shadow</code></strong> (boolean) - does the light produce shadow</li>
        <li><strong class="pname"><code>scene</code></strong> (host scene) - the scene</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="newEmpty"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">newEmpty</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">location</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">parentCenter</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">**kw</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.newEmpty">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Create a new Null Object</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name of the empty</li>
        <li><strong class="pname"><code>location</code></strong> (list) - position of the null object</li>
        <li><strong class="pname"><code>parentCenter</code></strong> (list) - position of the parent object</li>
        <li><strong class="pname"><code>kw</code></strong> (dictionary) - you can add your own keyword</li>
    </ul></dd>
    <dt>Returns: hostObject</dt>
        <dd>the null object</dd>
  </dl>
</td></tr></table>
</div>
<a name="newInstance"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">newInstance</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">object</span>,
        <span class="sig-arg">location</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">hostmatrice</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">matrice</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.newInstance">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Create a new Instance from another Object</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name of the instance</li>
        <li><strong class="pname"><code>object</code></strong> (hostObject) - the object to herit from</li>
        <li><strong class="pname"><code>location</code></strong> (list/Vector) - position of the null object</li>
        <li><strong class="pname"><code>hostmatrice</code></strong> (list/Matrix) - transformation matrix in host format</li>
        <li><strong class="pname"><code>matrice</code></strong> (list/Matrix) - transformation matrix in epmv/numpy format</li>
    </ul></dd>
    <dt>Returns: hostObject</dt>
        <dd>the instance object</dd>
  </dl>
</td></tr></table>
</div>
<a name="translateObj"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">translateObj</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">object</span>,
        <span class="sig-arg">position</span>,
        <span class="sig-arg">use_parent</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.translateObj">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Translation : Move the object to the vector position</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>object</code></strong> (hostObject) - the object</li>
        <li><strong class="pname"><code>position</code></strong> (liste/array) - the new object position px,py,pz</li>
        <li><strong class="pname"><code>use_parent</code></strong> (boolean) - if the parent position is used</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="scaleObj"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">scaleObj</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">object</span>,
        <span class="sig-arg">sc</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.scaleObj">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Scale : scale the object by the vector scale</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>object</code></strong> (hostObject) - the object</li>
        <li><strong class="pname"><code>sc</code></strong> (float or liste/array) - the scale vector s,s,s or sx,sy,sz</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="rotateObj"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">rotateObj</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">object</span>,
        <span class="sig-arg">rotation</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.rotateObj">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Translation : Move the object to the vector position This method could
  take either, a matrice, a euler array, a quaternion...</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>object</code></strong> (hostObject) - the object</li>
        <li><strong class="pname"><code>rotation</code></strong> (liste/array - matrice) - the new object rotation</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="getTranslation"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getTranslation</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">absolue</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getTranslation">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Return the current position (translation)  of the  given object in 
  absolute or local world</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (hostObject) - the object name</li>
    </ul></dd>
    <dt>Returns: 3d vector/list</dt>
        <dd>the position</dd>
  </dl>
</td></tr></table>
</div>
<a name="toggleDisplay"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">toggleDisplay</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">object</span>,
        <span class="sig-arg">display</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.toggleDisplay">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Toggle on/off the display/visibility/rendermode of an hostObject in 
  the host viewport</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>object</code></strong> (hostObject) - the object</li>
        <li><strong class="pname"><code>display</code></strong> (boolean) - if the object is displayed</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="getVisibility"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getVisibility</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">obj</span>,
        <span class="sig-arg">editor</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">render</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">active</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getVisibility">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>return the editor/renedring/active visibility state of the given 
  object</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>obj</code></strong> (hostObject) - the object</li>
        <li><strong class="pname"><code>editor</code></strong> (boolean) - request editor visibility</li>
        <li><strong class="pname"><code>render</code></strong> (boolean) - request rendering visibility</li>
        <li><strong class="pname"><code>active</code></strong> (boolean) - request active states ie C4D</li>
    </ul></dd>
    <dt>Returns: bool/array of bool</dt>
        <dd>the current visibility state of the object</dd>
  </dl>
</td></tr></table>
</div>
<a name="setObjectMatrix"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setObjectMatrix</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">object</span>,
        <span class="sig-arg">matrice</span>,
        <span class="sig-arg">hostmatrice</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.setObjectMatrix">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>set a matrix to an hostObject</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>object</code></strong> (hostObject) - the object who receive the transformation</li>
        <li><strong class="pname"><code>hostmatrice</code></strong> (list/Matrix) - transformation matrix in host format</li>
        <li><strong class="pname"><code>matrice</code></strong> (list/Matrix) - transformation matrix in epmv/numpy format</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="concatObjectMatrix"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">concatObjectMatrix</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">object</span>,
        <span class="sig-arg">matrice</span>,
        <span class="sig-arg">hostmatrice</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.concatObjectMatrix">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>apply a matrix to an hostObject</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>object</code></strong> (hostObject) - the object who receive the transformation</li>
        <li><strong class="pname"><code>hostmatrice</code></strong> (list/Matrix) - transformation matrix in host format</li>
        <li><strong class="pname"><code>matrice</code></strong> (list/Matrix) - transformation matrix in epmv/numpy format</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="convertColor"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">convertColor</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">col</span>,
        <span class="sig-arg">toint</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.convertColor">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>This function will convert a color array [r,g,b] from range 1-255 to 
  range 0.-1 (vice/versa)</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>col</code></strong> (array) - the color [r,g,b]</li>
        <li><strong class="pname"><code>toint</code></strong> (boolean) - way of the convertion, if true convert to 1-255, if false convert
          to range 0-1</li>
    </ul></dd>
    <dt>Returns: array</dt>
        <dd>the converted color [0-1.,0-1.,0-1.] or [1-255,1-255,1-255]</dd>
  </dl>
</td></tr></table>
</div>
<a name="createColorsMat"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">createColorsMat</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.createColorsMat">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Create a Material for all defined colors</p>
  <dl class="fields">
    <dt>Returns: list</dt>
        <dd>the list of the new colors material</dd>
  </dl>
</td></tr></table>
</div>
<a name="retrieveColorMat"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">retrieveColorMat</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">color</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.retrieveColorMat">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Retrieve a material in the current document from his color (r,g,b), if
  his color correpond to a DejaVu color</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>color</code></strong> (array) - the material color (r,g,b)</li>
    </ul></dd>
    <dt>Returns: hostMaterial</dt>
        <dd>the material of color color</dd>
  </dl>
</td></tr></table>
</div>
<a name="addMaterial"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">addMaterial</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">color</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.addMaterial">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Add a material in the current document</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - the material name</li>
        <li><strong class="pname"><code>color</code></strong> (array) - the material color (r,g,b)</li>
    </ul></dd>
    <dt>Returns: hostMaterial</dt>
        <dd>the new material</dd>
  </dl>
</td></tr></table>
</div>
<a name="assignMaterial"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">assignMaterial</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">mat</span>,
        <span class="sig-arg">object</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.assignMaterial">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Assign the provided material to the object</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>mat</code></strong> (mat) - the material</li>
        <li><strong class="pname"><code>object</code></strong> (hostApp object) - the object</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="colorMaterial"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">colorMaterial</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">mat</span>,
        <span class="sig-arg">col</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.colorMaterial">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Color a given material using the given color (r,g,b).</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>mat</code></strong> (hostMaterial) - the material to change</li>
        <li><strong class="pname"><code>col</code></strong> (array) - the color (r,g,b)</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="reParent"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">reParent</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">objs</span>,
        <span class="sig-arg">parent</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.reParent">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Change the object parent using the specified parent objects</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>objs</code></strong> (hostObject) - the object to be reparented</li>
        <li><strong class="pname"><code>parent</code></strong> (hostObject) - the new parent object</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="constraintLookAt"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">constraintLookAt</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">object</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.constraintLookAt">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Cosntraint an hostobject to llok at the camera</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>object</code></strong> (Hostobject) - object to constraint</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="Text"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">Text</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">string</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">parent</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">size</span>=<span class="sig-default">5.0</span>,
        <span class="sig-arg">pos</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">font</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">lookAt</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.Text">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Create a hostobject of type Text.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name of the circle</li>
        <li><strong class="pname"><code>string</code></strong> (string) - text to display</li>
        <li><strong class="pname"><code>parent</code></strong> (Hostobject) - parent of the text</li>
        <li><strong class="pname"><code>size</code></strong> (Float) - height of the text</li>
        <li><strong class="pname"><code>pos</code></strong> (Vector) - position of the text</li>
        <li><strong class="pname"><code>font</code></strong> (?) - the font to use</li>
        <li><strong class="pname"><code>lookAt</code></strong> (boolean) - either the text  is constraint to look at the camera/view</li>
    </ul></dd>
    <dt>Returns: hostObject</dt>
        <dd>the created text object</dd>
  </dl>
</td></tr></table>
</div>
<a name="Circle"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">Circle</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">rad</span>=<span class="sig-default">1.0</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.Circle">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Create a hostobject of type 2d circle.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name of the circle</li>
        <li><strong class="pname"><code>rad</code></strong> (float) - the radius of the cylinder (default = 1.)</li>
    </ul></dd>
    <dt>Returns: hostObject</dt>
        <dd>the created circle</dd>
  </dl>
</td></tr></table>
</div>
<a name="Cylinder"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">Cylinder</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">radius</span>=<span class="sig-default">1.0</span>,
        <span class="sig-arg">length</span>=<span class="sig-default">1.0</span>,
        <span class="sig-arg">res</span>=<span class="sig-default">16</span>,
        <span class="sig-arg">pos</span>=<span class="sig-default"><code class="variable-group">[</code>0.0<code class="variable-op">, </code>0.0<code class="variable-op">, </code>0.0<code class="variable-group">]</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.Cylinder">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Create a hostobject of type cylinder.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name of the cylinder</li>
        <li><strong class="pname"><code>radius</code></strong> (float) - the radius of the cylinder</li>
        <li><strong class="pname"><code>length</code></strong> (float) - the length of the cylinder</li>
        <li><strong class="pname"><code>res</code></strong> (float) - the resolution/quality of the cylinder</li>
        <li><strong class="pname"><code>pos</code></strong> (array) - the position of the cylinder</li>
    </ul></dd>
    <dt>Returns: hostObject</dt>
        <dd>the created cylinder</dd>
  </dl>
</td></tr></table>
</div>
<a name="Sphere"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">Sphere</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">radius</span>=<span class="sig-default">1.0</span>,
        <span class="sig-arg">res</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">pos</span>=<span class="sig-default"><code class="variable-group">[</code>0.0<code class="variable-op">, </code>0.0<code class="variable-op">, </code>0.0<code class="variable-group">]</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.Sphere">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Create a hostobject of type sphere.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name of the sphere</li>
        <li><strong class="pname"><code>radius</code></strong> (float) - the radius of the sphere</li>
        <li><strong class="pname"><code>res</code></strong> (float) - the resolution/quality of the sphere</li>
        <li><strong class="pname"><code>pos</code></strong> (array) - the position of the cylinder</li>
    </ul></dd>
    <dt>Returns: hostObject</dt>
        <dd>the created sphere</dd>
  </dl>
</td></tr></table>
</div>
<a name="box"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">box</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">center</span>=<span class="sig-default"><code class="variable-group">[</code>0.0<code class="variable-op">, </code>0.0<code class="variable-op">, </code>0.0<code class="variable-group">]</code></span>,
        <span class="sig-arg">size</span>=<span class="sig-default"><code class="variable-group">[</code>1.0<code class="variable-op">, </code>1.0<code class="variable-op">, </code>1.0<code class="variable-group">]</code></span>,
        <span class="sig-arg">cornerPoints</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">visible</span>=<span class="sig-default">1</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.box">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Create a hostobject of type cube.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name of the box</li>
        <li><strong class="pname"><code>center</code></strong> (array) - the center of the box</li>
        <li><strong class="pname"><code>size</code></strong> (array) - the size in x y z direction</li>
        <li><strong class="pname"><code>cornerPoints</code></strong> (array list) - the upper-left and bottom right corner point coordinates</li>
        <li><strong class="pname"><code>visible</code></strong> (booelan) - visibility of the cube after creation (deprecated)</li>
    </ul></dd>
    <dt>Returns: hostObject</dt>
        <dd>the created box</dd>
  </dl>
</td></tr></table>
</div>
<a name="updateBox"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">updateBox</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">box</span>,
        <span class="sig-arg">center</span>=<span class="sig-default"><code class="variable-group">[</code>0.0<code class="variable-op">, </code>0.0<code class="variable-op">, </code>0.0<code class="variable-group">]</code></span>,
        <span class="sig-arg">size</span>=<span class="sig-default"><code class="variable-group">[</code>1.0<code class="variable-op">, </code>1.0<code class="variable-op">, </code>1.0<code class="variable-group">]</code></span>,
        <span class="sig-arg">cornerPoints</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">visible</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">mat</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.updateBox">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Update the given box.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>box</code></strong> (string) - name of the box</li>
        <li><strong class="pname"><code>center</code></strong> (array) - the new center of the box</li>
        <li><strong class="pname"><code>size</code></strong> (array) - the new size in x y z direction</li>
        <li><strong class="pname"><code>cornerPoints</code></strong> (array list) - the new upper-left and bottom right corner point coordinates</li>
        <li><strong class="pname"><code>visible</code></strong> (booelan) - visibility of the cube after creation (deprecated)</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="getCornerPointCube"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getCornerPointCube</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">obj</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.getCornerPointCube">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Return the corner Point of the Given Cube/Box</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>obj</code></strong> (string) - name of the box</li>
    </ul></dd>
    <dt>Returns: array 2x3</dt>
        <dd>the upper-left and bottom right corner point coordinates</dd>
  </dl>
</td></tr></table>
</div>
<a name="spline"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">spline</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">points</span>,
        <span class="sig-arg">close</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">type</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">scene</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">parent</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.spline">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>This will return a hostApp spline/curve object according the given 
  list of point.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name for the object</li>
        <li><strong class="pname"><code>points</code></strong> (liste/array vector) - list of position coordinate of the curve point</li>
        <li><strong class="pname"><code>close</code></strong> (bool/int) - is the curve is closed</li>
        <li><strong class="pname"><code>type</code></strong> (int/string) - ususally describe type of curve, ie : bezier, linear, cubic, 
          etc...</li>
        <li><strong class="pname"><code>scene</code></strong> (hostApp scene) - the current scene</li>
        <li><strong class="pname"><code>parent</code></strong> (hostObject) - the parent for the curve</li>
    </ul></dd>
    <dt>Returns: hostObject</dt>
        <dd>the created spline</dd>
  </dl>
</td></tr></table>
</div>
<a name="plane"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">plane</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">center</span>=<span class="sig-default"><code class="variable-group">[</code>0.0<code class="variable-op">, </code>0.0<code class="variable-op">, </code>0.0<code class="variable-group">]</code></span>,
        <span class="sig-arg">size</span>=<span class="sig-default"><code class="variable-group">[</code>1.0<code class="variable-op">, </code>1.0<code class="variable-group">]</code></span>,
        <span class="sig-arg">cornerPoints</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">visible</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">**kw</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.plane">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Create a hostobject of type cube.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name of the plane</li>
        <li><strong class="pname"><code>center</code></strong> (array) - the center of the plane</li>
        <li><strong class="pname"><code>size</code></strong> (array) - the size in x y z direction</li>
        <li><strong class="pname"><code>cornerPoints</code></strong> (array list) - the upper-left and bottom right corner point coordinates</li>
        <li><strong class="pname"><code>visible</code></strong> (booelan) - visibility of the plane after creation (deprecated)</li>
        <li><strong class="pname"><code>kw</code></strong> (dictionary) - list of additional arguments : &quot;material&quot;, 
          subdivision&quot;, axis&quot;</li>
    </ul></dd>
    <dt>Returns: hostObject</dt>
        <dd>the created plane</dd>
  </dl>
</td></tr></table>
</div>
<a name="update_spline"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">update_spline</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">coords</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.update_spline">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>This will update the spline point coordinate</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name for the spline to update</li>
        <li><strong class="pname"><code>coords</code></strong> (liste/array vector) - list of new position coordinate to apply to the curve point</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="Platonic"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">Platonic</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">Type</span>,
        <span class="sig-arg">radius</span>,
        <span class="sig-arg">**kw</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.Platonic">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Generate one of the 5 platonic solid. The name of each figure is 
  derived from its number of faces: respectively &quot;tetra&quot; 4, 
  &quot;hexa&quot; 6, &quot;ocata&quot; 8, &quot;dodeca&quot; 12, and 
  20.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name of the platonic</li>
        <li><strong class="pname"><code>Type</code></strong> (string or int) - type of the platonic, can be tetra&quot; 4, &quot;hexa&quot; 6, 
          &quot;ocata&quot; 8, &quot;dodeca&quot; 12, and &quot;ico&quot; 
          20.</li>
        <li><strong class="pname"><code>radius</code></strong> (float) - radius of the embeding sphere</li>
        <li><strong class="pname"><code>kw</code></strong> (dictionary) - additional arguement such as meterial,parent</li>
    </ul></dd>
    <dt>Returns: hostObject</dt>
        <dd>the created platonic</dd>
  </dl>
</td></tr></table>
</div>
<a name="tetrahedron"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">tetrahedron</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">radius</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.tetrahedron">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>This will update the spline point coordinate</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name for the spline to update</li>
        <li><strong class="pname"><code>coords</code></strong> (liste/array vector) - list of new position coordinate to apply to the curve point</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="octahedron"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">octahedron</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">radius</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.octahedron">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>This will update the spline point coordinate</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name for the spline to update</li>
        <li><strong class="pname"><code>coords</code></strong> (liste/array vector) - list of new position coordinate to apply to the curve point</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="dodecahedron"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">dodecahedron</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">radius</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.dodecahedron">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>This will update the spline point coordinate</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name for the spline to update</li>
        <li><strong class="pname"><code>coords</code></strong> (liste/array vector) - list of new position coordinate to apply to the curve point</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="icosahedron"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">icosahedron</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">radius</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.icosahedron">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>This will update the spline point coordinate</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name for the spline to update</li>
        <li><strong class="pname"><code>coords</code></strong> (liste/array vector) - list of new position coordinate to apply to the curve point</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="progressBar"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">progressBar</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">progress</span>,
        <span class="sig-arg">label</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.progressBar">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>update the progress bar status by progress value and label string</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>progress</code></strong> (Int/Float) - the new progress</li>
        <li><strong class="pname"><code>label</code></strong> (string) - the new message to put in the progress status</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="writeToFile"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">writeToFile</span>(<span class="sig-arg">filename</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.writeToFile">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Creates a .vert and a face file describing this indexed polygons 
  geoemtry. only vertices, and noramsl are saved the the .vert file (x y z 
  nx ny nz) and 0-based topoly in the .face file (i, j, k, ... ).</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="ToMat"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">ToMat</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">mat</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.ToMat">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Return a python (4,4) matrice array from a host matrice</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>v</code></strong> (host matrice array) - host matrice array</li>
    </ul></dd>
    <dt>Returns: matrice</dt>
        <dd>the converted  matrice array</dd>
  </dl>
</td></tr></table>
</div>
<a name="ToVec"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">ToVec</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">v</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.ToVec">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Return a python xyz array from a host xyz array/vector</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>v</code></strong> (host vector array) - host vector array</li>
    </ul></dd>
    <dt>Returns: array</dt>
        <dd>the converted  vector array</dd>
  </dl>
</td></tr></table>
</div>
<a name="createsNmesh"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">createsNmesh</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">vertices</span>,
        <span class="sig-arg">vnormals</span>,
        <span class="sig-arg">faces</span>,
        <span class="sig-arg">smooth</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">material</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">proxyCol</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">color</span>=<span class="sig-default"><code class="variable-group">[</code><code class="variable-group">[</code>1<code class="variable-op">, </code>0<code class="variable-op">, </code>0<code class="variable-group">]</code><code class="variable-group">]</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.createsNmesh">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>function that generate a Polygon object from the given vertices, face 
  and normal. material or color can be passed and apply to the created 
  polygon. Return the object and the mesh</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="PointCloudObject"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">PointCloudObject</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">**kw</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.PointCloudObject">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>This function create a special polygon which have only point.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name of the pointCloud</li>
        <li><strong class="pname"><code>kw</code></strong> (dictionary) - dictionary of arg options, ie : 'vertices' array of coordinates ;
          'faces'    int array of faces ; 'parent'   hostAp parent object</li>
    </ul></dd>
    <dt>Returns: hostApp obj</dt>
        <dd>the polygon object</dd>
  </dl>
</td></tr></table>
</div>
<a name="addBone"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">addBone</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">i</span>,
        <span class="sig-arg">armData</span>,
        <span class="sig-arg">headCoord</span>,
        <span class="sig-arg">tailCoord</span>,
        <span class="sig-arg">roll</span>=<span class="sig-default">10</span>,
        <span class="sig-arg">hR</span>=<span class="sig-default">0.5</span>,
        <span class="sig-arg">tR</span>=<span class="sig-default">0.5</span>,
        <span class="sig-arg">dDist</span>=<span class="sig-default">0.4</span>,
        <span class="sig-arg">boneParent</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">name</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">editMode</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.addBone">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Add one bone to an armature. Optional function for creation of the 
  armature</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>i</code></strong> (int) - indice for the new bone</li>
        <li><strong class="pname"><code>armData</code></strong> (armature host data) - the armature</li>
        <li><strong class="pname"><code>headCoord</code></strong> (array xyz) - coordinate of the head of the bone</li>
        <li><strong class="pname"><code>tailCoord</code></strong> (array xyz) - coordinate of the tail of the bone</li>
        <li><strong class="pname"><code>boneParent</code></strong> (bone) - the parent for the created bone</li>
    </ul></dd>
    <dt>Returns: bone</dt>
        <dd>the created bone</dd>
  </dl>
</td></tr></table>
</div>
<a name="armature"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">armature</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">coords</span>,
        <span class="sig-arg">**kw</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.armature">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Create an armature along the given coordinates</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name of the armature object</li>
        <li><strong class="pname"><code>coords</code></strong> (list of array xyz) - coordinate foreach bone</li>
    </ul></dd>
    <dt>Returns: host Object</dt>
        <dd>the created armature</dd>
  </dl>
</td></tr></table>
</div>
<a name="oneMetaBall"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">oneMetaBall</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">metab</span>,
        <span class="sig-arg">rad</span>,
        <span class="sig-arg">coord</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.oneMetaBall">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Add one ball to a metaball object. Optional function for creation of 
  the metaball</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>metab</code></strong> (metaball host data) - the metaball</li>
        <li><strong class="pname"><code>rad</code></strong> (float) - radius for the new ball</li>
        <li><strong class="pname"><code>coord</code></strong> (array xyz) - coordinate of the ball</li>
    </ul></dd>
    <dt>Returns: ball/None</dt>
        <dd>the ball or None</dd>
  </dl>
</td></tr></table>
</div>
<a name="metaballs"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">metaballs</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">listePt</span>,
        <span class="sig-arg">listeR</span>,
        <span class="sig-arg">**kw</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.metaballs">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Create a metaballs along the given coordinates</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> (string) - name of the metaballs object</li>
        <li><strong class="pname"><code>listePt</code></strong> (list of array xyz) - coordinate foreach bone</li>
        <li><strong class="pname"><code>listeR</code></strong> (list of float) - radius foreach ball</li>
    </ul></dd>
    <dt>Returns: host Object</dt>
        <dd>the created metaballs</dd>
  </dl>
</td></tr></table>
</div>
<a name="triangulate"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">triangulate</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">poly</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="upy.hostHelper-pysrc.html#Helper.triangulate">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Convert quad to triangle the selected face of the given polygon 
  object</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>poly</code></strong> (hostObj) - the object to triangulate</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="upy-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1
    on Fri Oct 28 09:07:29 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
